#ifndef __DRI_WEBSOCKET_H__
#define __DRI_WEBSOCKET_H__

#include <stdio.h>
#include "esp_wifi.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "protocol_examples_common.h"
#include "esp_crt_bundle.h"

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "freertos/event_groups.h"

#include "esp_log.h"
#include "esp_websocket_client.h"
#include "esp_event.h"
#include <cJSON.h>

#include "Com_Debug.h"
#include "Com_Config.h"

// ers -> 前端
#define SOUND_DIR_ESP2CLIENT 0
// 前端 -> ers
#define SOUND_DIR_CLIENT2ESP 1

// WebSocket 事件处理函数，用于处理各种 WebSocket 事件
extern void websocket_event_handler(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data) ;

#endif /* __DRI_WEBSOCKET_H__ */ 
